package cisdi.mes.sm.rm.daoImpl;


import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import cisdi.mes.sm.rm.dao.StorageDao;
import cisdi.mes.sm.rm.domain.SmRmStorage;

@Repository
public class StorageDaoImpl extends HibernateDaoSupport implements StorageDao {

	@Autowired
	public void setMySessionFactory(SessionFactory sessionFactory){
		super.setSessionFactory(sessionFactory);
	}
	@Override
	public SmRmStorage getById(String storageId) {
		return this.getHibernateTemplate().get(SmRmStorage.class, storageId);
	}

}
